Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move session params show_log and log_level as a global configuration. #42

Merged
merged 5 commits into from
Dec 25, 2020

Conversation

lidongze0629
Copy link
Collaborator

@lidongze0629 lidongze0629 commented Dec 24, 2020

What do these changes do?

  • Print the process information when launching session
  • Dump session status when launch failed even show_log is False
  • Move show_log and log_level as a global configuration.
  • Add graphscope.set_option and graphscope.get_option API

Related issue number

Fixes #7
Fixes #27

- Print the process information when launching session
- Dump session status when launch failed even show_log is False
- Move `show_log` and `log_level` as a global configuration.
- Add graphscope.set_option and graphscope.get_option API
@codecov-io
Copy link

codecov-io commented Dec 24, 2020

Codecov Report

Merging #42 (b374a85) into main (46ab90a) will increase coverage by 0.67%.
The diff coverage is 89.04%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #42      +/-   ##
==========================================
+ Coverage   77.36%   78.04%   +0.67%     
==========================================
  Files          48       49       +1     
  Lines        4356     4472     +116     
==========================================
+ Hits         3370     3490     +120     
+ Misses        986      982       -4     
Impacted Files Coverage Δ
python/graphscope/deploy/kubernetes/cluster.py 74.25% <70.96%> (+2.87%) ⬆️
python/graphscope/client/session.py 73.05% <75.00%> (-0.04%) ⬇️
python/graphscope/deploy/kubernetes/utils.py 73.95% <90.58%> (+13.21%) ⬆️
python/graphscope/client/utils.py 96.07% <96.07%> (ø)
python/graphscope/client/rpc.py 83.82% <100.00%> (+0.11%) ⬆️
python/graphscope/config.py 100.00% <100.00%> (ø)
...n/graphscope/deploy/kubernetes/resource_builder.py 61.58% <100.00%> (ø)
python/graphscope/deploy/tests/test_demo_script.py 99.00% <100.00%> (+<0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 46ab90a...b374a85. Read the comment docs.

coordinator/gscoordinator/utils.py Outdated Show resolved Hide resolved
python/graphscope/client/session.py Outdated Show resolved Hide resolved
python/graphscope/client/session.py Outdated Show resolved Hide resolved
python/graphscope/client/session.py Outdated Show resolved Hide resolved
python/graphscope/client/utils.py Show resolved Hide resolved
@lidongze0629 lidongze0629 changed the title Log releated. Move session params show_log and log_level as a global configuration. Dec 25, 2020
@lidongze0629
Copy link
Collaborator Author

Thanks, @sighingnow, I have improved the coding following your advice.

@lidongze0629 lidongze0629 requested a review from yecol December 25, 2020 05:58
Copy link
Collaborator

@yecol yecol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@lidongze0629 lidongze0629 requested review from sighingnow and removed request for sighingnow December 25, 2020 06:10
@lidongze0629 lidongze0629 dismissed sighingnow’s stale review December 25, 2020 06:24

Change approved by @sigingnow, but no computer at hand.

@lidongze0629 lidongze0629 merged commit 12de77c into alibaba:main Dec 25, 2020
@sighingnow
Copy link
Collaborator

There are still many show_logs=True/False in test_xxxxx.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants